<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>
        床位信息
    </title>
    <style>
        table {
            border: 1px red solid;
            margin-left: 50px;
            font-size: 16px;
            font-weight: bold;
            line-height: 24px;
            text-align: center;
            text-indent: 3em;
        }
        .dd{
            margin-left: 30px;
            margin-top: 20px;
        }
    </style>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../css/x-admin.css" media="all">
    <link rel="stylesheet" href="../css/pag.css" media="all">
    <link type="text/css" rel="stylesheet" href="../js/jedate/test/jeDate-test.css">
    <link type="text/css" rel="stylesheet" href="../js/jedate/skin/jedate.css">
    <script type="text/javascript" src="../js/jedate/src/jedate.js"></script>
</head>
<body>
<div class="dd">
        <table>
            <tr class="mes">
                <td>床位号：</td>
                <td>${bed.BNo}</td>
            </tr>
            <tr class="mes">
                <td>所属科室：</td>
                <td>${bed.bkName}</td>
            </tr>
            <tr class="mes">
                <td >住院号：</td>
                <td>
                    <c:if test="${bed.HNo eq 0}">暂无</c:if>
                    <c:if test="${bed.HNo != 0}">${bed.HNo}</c:if>
                </td>
            </tr>
            <tr class="mes">
                <td>使用患者：</td>
                <td>
                    <c:if test="${bed.bName eq null}">暂无</c:if>
                    <c:if test="${bed.bName != null}">${bed.bName}</c:if>
                </td>
            </tr>
            <tr class="mes">
                <td>床位状态：</td>
                <td><c:if test="${bed.BState eq 1}">使用中</c:if>
                    <c:if test="${bed.BState eq 2}">空闲中</c:if>
                </td>
            </tr>
            <tr class="mes">
                <td>床位价格：</td>
                <td>${bed.BPay}元/天</td>
            </tr>
        </table>
        <div class="layui-form-item">
            <button class="layui-btn" type="button" style="margin-top: 20px;margin-left: 120px">
                确定
            </button>
        </div>
</div>

<script src="../lib/layui/layui.js" charset="utf-8"></script>
<script src="../js/x-layui.js" charset="utf-8"></script>
<script src="../js/jquery2.js" charset="utf-8"></script>
<script src="../js/js.js" charset="utf-8"></script>
<script>
    layui.use(['laydate', 'element', 'laypage', 'layer'], function () {
        $ = layui.jquery;//jquery
        lement = layui.element();//面包导航
        laypage = layui.laypage;//分页
        layer = layui.layer;//弹出层

    });
    $('.tablelist tbody tr:odd').addClass('odd');

    $(".layui-btn").bind("click", function () {
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
    })
    $('tr:odd').addClass('odd');
</script>
</body>
</html>